home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
compress
/
cxe103
/
cx.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-08-03
|
1KB
|
42 lines
#ifndef __CX__
#define __CX__
/*-------------------------------------------------------------------------*/
#ifdef CXANSI
typedef unsigned char *CXBUFF;
#define CXCALL
#else
typedef unsigned char far *CXBUFF;
#define CXCALL far pascal
#endif
typedef unsigned int CXINT;
#define CXINTSIZE sizeof(CXINT)
#define CX_ERR_INVALID (65535u - 0)
#define CX_ERR_METHOD (65535u - 1)
#define CX_ERR_BUFFSIZE (65535u - 2)
#define CX_ERR_TEMPSIZE (65535u - 3)
#define CX_METHOD1 (1)
#define CX_METHOD2 (2)
#define CX_METHOD3 (3)
#define CX_MAX_BUFFER (65000u)
#define CX_SLOP (300)
#define CX_C_MINTEMP (16 * 1024)
#define CX_C_MAXTEMP (65500u)
#define CX_D_MINTEMP (5 * 1024)
#ifndef NOPROTO
CXINT CXCALL CX_COMPRESS(CXINT method, CXBUFF obuff, CXINT osize,
CXBUFF ibuff, CXINT isize, CXBUFF tbuff, CXINT tsize);
CXINT CXCALL CX_DECOMPRESS(CXBUFF obuff, CXINT osize,
CXBUFF ibuff, CXINT isize, CXBUFF tbuff, CXINT tsize);
CXINT CXCALL CX_CRC(CXBUFF buff, CXINT n);
#endif
/*-------------------------------------------------------------------------*/
#endif